export default {
  namespaced: true,
  state: {
    telphone: '',
    username: '',
    userinfo: ''
  },
  mutations: {
    resetUserInfo (state) {
      state.userinfo = null
    },
    changePhone (state, payload) {
      state.telphone = payload
    },
    changeUsername (state, payload) {
      state.username = payload
    },
    changeUserInfo (state, payload) {
      state.userinfo = { ...state.userinfo, ...payload }
    }
  },
  actions: {
  },
  modules: {
  }
}
